﻿
using Mono.Cecil;

public class LuaEventDefinition : LuaMemberReference<EventDefinition>
{
    private readonly LuaTypeDefinition _owned;
    public LuaEventDefinition(LuaModuleDefinition module, LuaTypeDefinition owned, EventDefinition self) : base(module, self)
    {
        _owned = owned;
    }
    internal void WriteTo(ICodeWriter writer)
    {
        writer.CodeLine($"this.{Name} = nil");
    }
}

